package com.yidu.hbatsams.service.emp;

import com.yidu.hbatsams.domain.AtsEmpCoach;

import java.util.List;

/**
 * 教练表的Service接口类
 */
public interface AtsEmpCoachService {

    /**
     * 分页查询加模糊查询
     * @param pageNum
     * @param pageSize
     * @param coachName
     * @return
     */
    List<AtsEmpCoach> selectAll(Integer pageNum, Integer pageSize, String coachName,String startTime,String endTime);

    /**
     * 查询行数
     * @return
     */
    Long count();

    /**
     * 逻辑删除
     * @param coachId
     * @return
     */
    int deleteByPrimaryKey(Integer coachId);

    /**
     * 新增
     * @param record
     * @return
     */
    int insert(AtsEmpCoach record );


    /**
     * 修改
     * @param record
     * @return
     */
    int updateByPrimaryKey(AtsEmpCoach record );
    /**
     * 科研教练
     * @return
     */
    List<AtsEmpCoach> findByName();

    /**
     * 运动教练
     * @return
     */
    List<AtsEmpCoach> findByExerName();
    /**
     * 根据ID查询
     * @param coachId
     * @return
     */
    AtsEmpCoach findById(Integer coachId);

    /**
     * 根据教练员名称查ID
     * @param coachName
     * @return
     */
    AtsEmpCoach findByCoachId(String coachName);

    /**
     * 根据ID查询教练员
     * @param coachId
     * @return
     */
    List<AtsEmpCoach> findByCoachName(Integer coachId);

    /**
     * 根据教练员主键查专业
     * @param coachId
     * @return
     */
    AtsEmpCoach selectexpert(Integer coachId);
}
